package com.thememaker.lockstyle.bean.command;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by jiajun.jiang on 2018/3/5.
 */
@XmlRootElement(name = "IntentCommand")
public class IntentCommand extends BaseCommand {
    private String action;
    private String index;
    private String packageString;
    private String classString;
    private String type;
    private String category;
    private String image_name;

    public String getImage_name() {
        return image_name;
    }

    public void setImage_name(String image_name) {
        this.image_name = image_name;
    }

    @XmlAttribute(name = "type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    @XmlAttribute(name = "category")
    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    @XmlAttribute(name = "action")
    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    @XmlAttribute(name = "package")
    public String getPackageString() {
        return packageString;
    }

    public void setPackageString(String packageString) {
        this.packageString = packageString;
    }

    @XmlAttribute(name = "class")
    public String getClassString() {
        return classString;
    }

    public void setClassString(String classString) {
        this.classString = classString;
    }

    public IntentCommand(String action, String packageString, String classString) {
        this.action = action;
        this.packageString = packageString;
        this.classString = classString;
    }

    public IntentCommand() {
    }

    @Override
    public String toString() {
        return "IntentCommand{" +
                "action='" + action + '\'' +
                ", index='" + index + '\'' +
                ", packageString='" + packageString + '\'' +
                ", classString='" + classString + '\'' +
                ", type='" + type + '\'' +
                ", category='" + category + '\'' +
                '}';
    }
}
